﻿using System.Drawing;
using Microsoft.SharePoint;

namespace SpImageCasheSDK
{
    public interface ISpImageCacheAction
    {
        /// <summary>
        /// Perorms image manipulation. Gets the original image and parameters and returns modified image
        /// </summary>
        /// <param name="image">Original image</param>
        /// <param name="actionParameters">Action parameters</param>
        /// <returns>Modified image</returns>
        Image Execute(Image image, params object[] actionParameters);
    }
}
